import { IPlayer, IRoom } from "./Api";
import { IClientInput, IState } from "./State";

export interface IMsgPlayerList {
  list: Array<IPlayer>;
}

export interface IMsgRoomList {
  list: Array<IRoom>;
}

export interface IMsgRoom {
  room: IRoom;
}

export interface IMsgGameStart {
  state: IState;
}

export interface IMsgGameStart {
  state: IState;
}

export interface IMsgGameEnd {}

export interface IMsgClientSync {
  frameId: number;
  input: IClientInput;
}

export interface IMsgServerSync {
  lastFrameId: number;
  inputs: Array<IClientInput>;
}
